import request from "@/utils/request";

//其他付款单概况
export function overviewPayment(params) {
  return request({
    url: "/payment/overview",
    method: "get",
    params,
  });
}
//其他付款单列表
export function getPayment(params) {
  return request({
    url: "/payment",
    method: "get",
    params,
  });
}

//其他付款单修改
export function updatePayment(data) {
  return request({
    url: `/payment/${data.id}`,
    method: "put",
    data,
  });
}
//其他付款单新增
export function addPayment(data) {
  return request({
    url: `/payment`,
    method: "post",
    data,
  });
}

//其他付款单审核
export function reviewPayment(data) {
  return request({
    url: `/payment/review`,
    method: "patch",
    data,
  });
}
//其他付款单反审核
export function antiCensorshipPayment(data) {
  return request({
    url: `/payment/antiCensorship`,
    method: "patch",
    data,
  });
}
